﻿#ifndef U_IP_EDIT_H
#define U_IP_EDIT_H

#include <QWidget>
#include "Window/mydialog.h"

class IpEdit : public MyDialog
{
    Q_OBJECT
public:
    explicit IpEdit(IPData ip, QWidget *parent = nullptr);
public slots:
    void OnBtnEditClicked();
    void OnBtnResetClicked();

private:
    void InitWidget();
    void SetupConnections();
    void Initialize();

    IPData      bean;

    QPushButton  *btnEdit;
    QPushButton  *btnReset;

    QLineEdit    *editKw;
    QLineEdit    *editIP;
    QLineEdit    *editPort;
};

#endif // U_IP_EDIT_H
